<!DOCTYPE html>
<html ng-app="sys_datasource_config">

<head>
<meta charset="UTF-8">
<title>数据源管理</title>
<link rel="icon" href="./img/config.png">
<link rel="stylesheet" type="text/css"
	href="../vendor/bootstrap/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css"
	href="../vendor/angular/angular-toastr-1.4.1.min.css">
<link rel="stylesheet" type="text/css"
	href="../vendor/select2/select2.min.css">
<link rel="stylesheet" type="text/css"
	href="../vendor/jquery-plugin/textareafullscreen.css">
<link rel="stylesheet" type="text/css" media='all'
	href="../vendor/angular/loading-bar.min.css">
<link rel="stylesheet" type="text/css" href="../styles/common-style.css">
</head>

<body>
	<div class="container-fluid" ng-controller="SysDataSourceConfigController">
		<table class="table table-striped table-hover table-bordered">
			<thead>
				<tr>
					<th>连接地址</th>
					<th>用户名</th>
					<th>密码</th>
					<th>数据库类型</th>
					<th>最后修改时间</th>
					<th>操作</th>
				</tr>
			</thead>
			<tbody>
				<tr ng-show="(!dataSourceConfigs || dataSourceConfigs.length < 1)">
					<td colspan="6">No config service found!</td>
				</tr>
				<tr
					ng-show="dataSourceConfigs && dataSourceConfigs.length > 0"
					ng-repeat="config in dataSourceConfigs">
					<td>{{config.jdbcUrl}}</td>
					<td>{{config.jdbcUsername}}</td>
					<td>{{config.jdbcPassword}}</td>
					<td>{{config.dbType}}</td>
					<td ng-bind="config.gmtModified | date: 'yyyy-MM-dd HH:mm:ss'"></td>
					<td><a href="javascript:;" ng-click="check()">check</a></td>
				</tr>
			</tbody>
		</table>
	</div>
	<!-- jquery.js -->
	<script src="../vendor/jquery.min.js" type="text/javascript"></script>

	<!--angular-->
	<script src="../vendor/angular/angular.min.js"></script>
	<script src="../vendor/angular/angular-route.min.js"></script>
	<script src="../vendor/angular/angular-resource.min.js"></script>
	<script src="../vendor/angular/angular-toastr-1.4.1.tpls.min.js"></script>
	<script src="../vendor/angular/loading-bar.min.js"></script>

	<!--valdr-->
	<script src="../vendor/valdr/valdr.min.js" type="text/javascript"></script>
	<script src="../vendor/valdr/valdr-message.min.js" type="text/javascript"></script>

	<!-- bootstrap.js -->
	<script src="../vendor/bootstrap/js/bootstrap.min.js" type="text/javascript"></script>

	<script src="../vendor/lodash.min.js"></script>

	<script src="../vendor/select2/select2.min.js" type="text/javascript"></script>

	<script type="application/javascript" src="../scripts/app.js"></script>
	
	<script type="application/javascript" src="../scripts/services/SysDataSourceConfigService.js"></script>

	<script type="application/javascript" src="../scripts/AppUtils.js"></script>

	<script type="application/javascript" src="../scripts/PageCommon.js"></script>
	
	<!-- <script type="application/javascript" src="../scripts/directive/directive.js"></script> -->
	
	<!-- <script type="application/javascript" src="../scripts/valdr.js"></script> -->
	
	<script type="application/javascript" src="../scripts/controller/SysDataSourceConfigController.js"></script>
</body>
</html>